package tcpFirmware.model;

import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;

public class FileHelper {

    public static byte[] getFile(String filePath){
        try {
            FileInputStream inputStream = new FileInputStream(filePath);
            byte[] bytes = new byte[inputStream.available()];
            int len = inputStream.read(bytes);
            inputStream.close();
            return bytes;
        } catch (IOException e) {
            e.printStackTrace();
        }
        return null;
    }
}
